/**
 * 中间表
 */
module.exports = (app) => {
  const { INTEGER } = app.Sequelize
  const DataSourceReturn = app.model.define(
    'data_source_return',
    {
      id: {
        type: INTEGER,
        autoIncrement: true,
        primaryKey: true,
      },
      dataSourceId: {
        type: INTEGER,
        allowNull: false,
      },
      returnId: {
        type: INTEGER,
        allowNull: false,
      },
    },
    {
      timestamps: false,
    }
  )

  return DataSourceReturn
}
